package com.timothy.android;

import android.graphics.Color;

public class LayoutSetting {
	public int screenHeight;
	public int screenWidth;
	public int screenSize;
	
	//Layout
	public int layout_bg_color = Color.CYAN;
	public int layout_padding = 4;
	
	//tv_msg
	public int tv_msg_bg_color = Color.WHITE;
	public int tv_msg_height = 200;
	public int tv_msg_textsize = 20;
	public int tv_msg_textcolor = Color.BLUE;
	
	//button
	public int button_bg_color = Color.YELLOW;
	public int button_height = 150;
	public int button_textsize = 25;
	public int button_textcolor = Color.BLUE;
	
	//CountDownSetting
//	public boolean count_down_mark = false;
//	public int count_down_time = 15;//seconds
//	public int count_down_interval = 1;//seconds
	
	
	public LayoutSetting(int screenSize,int screenHeight,int screenWidth){
		this.screenSize = screenSize;
		this.screenHeight = screenHeight;
		this.screenWidth = screenWidth;
		
		tv_msg_height = screenHeight/4;
		
		if(screenSize == 1){
			this.layout_bg_color = Color.CYAN;
			this.layout_padding = 4;
			this.tv_msg_bg_color = Color.WHITE;
//			this.tv_msg_height = 200;
			this.tv_msg_textsize = 30;
			this.tv_msg_textcolor = Color.BLUE;
			this.button_bg_color = Color.YELLOW;
			this.button_height = 150;
			this.button_textsize = 30;
			this.button_textcolor = Color.BLUE;		
		}else if(screenSize == 2){
			this.layout_bg_color = Color.CYAN;
			this.layout_padding = 2;
			this.tv_msg_bg_color = Color.WHITE;
//			this.tv_msg_height = 100;
			this.tv_msg_textsize = 25;
			this.tv_msg_textcolor = Color.BLUE;
			this.button_bg_color = Color.YELLOW;
			this.button_height = 100;
			this.button_textsize = 25;
			this.button_textcolor = Color.BLUE;			
		}else if(screenSize == 3){
			this.layout_bg_color = Color.CYAN;
			this.layout_padding = 1;
			this.tv_msg_bg_color = Color.WHITE;
//			this.tv_msg_height = 50;
			this.tv_msg_textsize = 20;
			this.tv_msg_textcolor = Color.BLUE;
			this.button_bg_color = Color.YELLOW;
			this.button_height = 50;
			this.button_textsize = 20;
			this.button_textcolor = Color.BLUE;			
		}
	}
}
